package com.lindroy.todomvp.addtask

import com.lindroy.todomvp.base.BasePresenter
import com.lindroy.todomvp.base.BaseView

/**
 * @author Lin
 * @date 2021/6/25
 * @function
 */
class AddEditTaskContract {
    interface View : BaseView<Presenter> {

        var isActive: Boolean

        fun showEmptyTaskError()

        /**
         * 通知任务列表页面刷新
         */
        fun showTasksList()

        fun setTitle(title: String)

        fun setDescription(description: String)
    }

    interface Presenter : BasePresenter {
        var isDataMissing: Boolean

        fun saveTask(title: String, description: String)

        fun populateTask()
    }
}